package br.com.etecmatao.dao;

import java.io.Serializable;
import java.util.List;

public interface GenericDAO<T, ID extends Serializable> {

    public Class<T> getEntityClass();

    public T findById(final ID id);

    public List<T> findAll();

    public T update(T entity);

    public T save(final T entity);

    public void delete(final T entity);
}
